package com.mapper;

import com.pojo.Produce;

/**
* @author karry
* @description 针对表【tb_produce】的数据库操作Mapper
* @createDate 2024-11-14 15:15:04
* @Entity com.pojo.Produce
*/
public interface ProduceMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Produce record);

    int insertSelective(Produce record);

    Produce selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Produce record);

    int updateByPrimaryKey(Produce record);

    @Select("select * from tb_person where id=#{id}")
    @Result({@Result(column = "card_id",property = "card",
            one = @One(select = "com.mapper.IdCardMapper.selectIdCardById"))})
    Person selectPersonById(int id);

}
